﻿<Application x:Class="Trackr.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="NotificationWindow.xaml">
    <Application.Resources>
		<!--STYLES-->
		<Style x:Key="iconFont" TargetType="Label" >
			<Setter Property="TextElement.FontFamily" Value="./#FontAwesome" />
			<Setter Property="Foreground" Value="DarkGray" />
		</Style>
		<Style x:Key="defaultFont" TargetType="TextBlock" >
			<Setter Property="Foreground" Value="DarkGray" />
			<Setter Property="FontFamily" Value="Segoe WP Light" />
			<Setter Property="FontSize" Value="16" />
		</Style>
		<Style x:Key="notificationText" TargetType="TextBox">
			<Setter Property="Foreground" Value="DarkGray" />
			<Setter Property="FontFamily" Value="Segoe WP Light" />
			<Setter Property="FontSize" Value="20" />
		</Style>
		<Style x:Key="title" TargetType="TextBlock" BasedOn="{StaticResource defaultFont}">
			<Setter Property="FontWeight" Value="Bold" />
			<Setter Property="FontSize" Value="20" />
		</Style>
		<Style x:Key="defaultFontSmall" TargetType="TextBlock" BasedOn="{StaticResource defaultFont}">
			<Setter Property="FontSize" Value="11" />
		</Style>
		
		<Style x:Key="TransparentButton" TargetType="Button">
			<Setter Property="Background" Value="Transparent" />
			<Setter Property="BorderBrush" Value="Transparent" />
			<Setter Property="BorderThickness" Value="0" />
			<Setter Property="Padding" Value="-4" />
		</Style>
		<!--END STYLES-->
		
		<!--DATA TEMPLATES-->
		<DataTemplate x:Key="SummaryItems" DataType="ItemsControl">
			<Border Margin="0,2" Padding="0,5" Background="#ffffff" BorderBrush="DarkOrange" BorderThickness="4,0,0,0">
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="25" />
						<ColumnDefinition Width="40" />
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="*" />
						<RowDefinition Height="25" />
					</Grid.RowDefinitions>
					<TextBlock Grid.Column="0" Margin="3,0,0,0" Text="{Binding Task}" Style="{StaticResource defaultFont}" />
					<Label Grid.Column="1"  Content="&#xF017;" Style="{StaticResource iconFont}" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
					<TextBlock  Grid.Column="2" Text="{Binding Duration, StringFormat=hh\\:mm}" Style="{StaticResource defaultFontSmall}" VerticalAlignment="Center" HorizontalAlignment="Left" />

					<Label Grid.Row="1" Grid.Column="1"  Content="&#xF0C0;" Style="{StaticResource iconFont}" ToolTip="{Binding ProjectId}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
				</Grid>
			</Border>
		</DataTemplate>
		
		<ControlTemplate x:Key="TransparentBtnTemplate" TargetType="Button">
			<ContentPresenter Content="{TemplateBinding Content}"/>
		</ControlTemplate>
		
		<DataTemplate x:Key="AutoCompleteItems" DataType="ListBoxItem">
			<Border Margin="0,2" Padding="0,5" Background="#ffffff" BorderBrush="DarkOrange" BorderThickness="4,0,0,0">
				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="25" />
						<ColumnDefinition Width="40" />
					</Grid.ColumnDefinitions>
					<Grid.RowDefinitions>
						<RowDefinition Height="*" />
						<RowDefinition Height="25" />
					</Grid.RowDefinitions>
					<TextBlock Grid.Column="0" Margin="3,0,0,0" Text="{Binding Task}" Style="{StaticResource defaultFont}" />
					<Label Grid.Column="1"  Content="&#xF017;" Style="{StaticResource iconFont}" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
					<TextBlock  Grid.Column="2" Text="{Binding Duration, StringFormat=hh\\:mm}" Style="{StaticResource defaultFontSmall}" VerticalAlignment="Center" HorizontalAlignment="Left" />

					<Label Grid.Row="1" Grid.Column="1"  Content="&#xF0C0;" Style="{StaticResource iconFont}" ToolTip="{Binding ProjectId}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
				</Grid>
			</Border>
		</DataTemplate>

		<!--END DATA TEMPLATES-->
	</Application.Resources>
</Application>
